package com.ciaojian.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ciaojian.core.model.ExchangeCode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ExchangeCodeMapper extends BaseMapper<ExchangeCode> {

    /**
     * 优惠券兑换码
     * @param code
     * @return
     */
    @Select("SELECT * FROM d_exchange_code WHERE exchange = #{code} ")
    ExchangeCode getByExchangeCode(String code);
}
